<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var str = 'Hello JS!';
			console.log(str.length);
			console.log(str.toLowerCase());
			console.log(str.toUpperCase());
			console.log(str.charAt(6));
			
			var str1 = 'Hello js and java';
			console.log(str1.indexOf('js'));//6
			console.log(str1.indexOf('JS'));//-1
			console.log(str1.lastIndexOf('js'));//6
			
			var str2 = 'how are you doing today?';
			var array = str2.split(' ');
			console.log(array);//["how", "are", "you", "doing", "today?"]
			console.log(array[1]);// are
		</script>
	</head>
	<body>
	</body>
</html>
